package fr.uniscol.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Classe implements Serializable {

	private BaseAnneeScolaire base = null;
	
	private long id = 0;
	
	private String libelle = null;
	
	private String codeStructure = null;

	private int nbEleves = 0;
	
	private List<Eleve> eleves = null;
    
    private List<ServiceEnseignant> services = null;
    
    private List<MEF> mefs = null;
	
	public Classe(){
	}
	
	public BaseAnneeScolaire getBase() {
		return base;
	}

	public void setBase(BaseAnneeScolaire base) {
		this.base = base;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getLibelle() {
		return libelle;
	}

	public void setLibelle(String libelle) {
		this.libelle = libelle;
	}

	public String getCodeStructure() {
		if(codeStructure == null){
			codeStructure = "";
		}
		return codeStructure;
	}

	public void setCodeStructure(String codeStructure) {
		this.codeStructure = codeStructure;
	}

	public int getNbEleves() {
		return nbEleves;
	}

	public void setNbEleves(int nbEleves) {
		this.nbEleves = nbEleves;
	}

	public List<Eleve> getEleves() {
		if(eleves == null){
			eleves = new ArrayList<Eleve>();
		}
		return eleves;
	}

	public void setEleves(List<Eleve> eleves) {
		this.eleves = eleves;
	}

    public List<ServiceEnseignant> getServices() {
        if(services == null){
            services = new ArrayList<ServiceEnseignant>();
        }
        return services;
    }

    public void setServices(List<ServiceEnseignant> services) {
        this.services = services;
    }

    public List<MEF> getMefs() {
        if(mefs == null){
            mefs = new ArrayList<MEF>();
        }
        return mefs;
    }

    public void setMefs(List<MEF> mefs) {
        this.mefs = mefs;
    }
}
